package com.lesso.yjy.sunflower.infra.assembler;

import com.lesso.yjy.sunflower.model.EmployeeAttendanceRule;
import com.lesso.yjy.sunflower.pojo.dto.EmployeeAttendanceRuleDTO;
import com.lesso.yjy.sunflower.pojo.vo.EmployeeAttendanceRuleVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface EmployeeAttendanceRuleAssembler {
    EmployeeAttendanceRuleAssembler INSTANCE = Mappers.getMapper(EmployeeAttendanceRuleAssembler.class);

    EmployeeAttendanceRule dtoToEntity(EmployeeAttendanceRuleDTO dto);

    List<EmployeeAttendanceRuleVO> entityListToVOList(List<EmployeeAttendanceRule>  employeeAttendanceRules);
}
